/*
 *  Copyright (C) 2009  Peter Kist & Jan Ripke
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef __input_oisinput_producer_h
#define __input_oisinput_producer_h 1

#include <boost/weak_ptr.hpp>
#include <OIS/OISInputManager.h>

#include <gfx/Interface.h>
#include <mediator/Producer.h>
#include <input/OIS/Manager.h>

// forward decls
namespace OIS {
    class Mouse;
    class Keyboard;
}


namespace galaxy {

    class mediator::RequestResult;
    class mediator::Request;
    class gfx::GfxRequestWinInfo;

    namespace input {

        namespace ois_input {

            class Manager;

            class Producer: public mediator::Producer
            {
                Manager           * m_Manager;          /**< The ois_input::Manager */

                /** intentionally private default constructor */
                Producer() { };

            public:
                Producer(Manager& manager);
                virtual ~Producer(void);

                Manager * getManager() { return m_Manager; }

                /** handes queries about the state of the input devices */
                virtual bool handleRequest(const mediator::Request &Request,
                    mediator::RequestResultPtr& result);
                virtual int category () { return mediator::CATEGORY_INPUT; };
            };


        } // namespace ois_input
    } // namespace input
} // namespace galaxy

#endif // __input_oisinput_producer_h

